From: Florian Müllner Date: Mon, 10 Feb 2025 23:42:45 +0000 (+0100) Subject: main: Don't set stage key focus to stage itself X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~153^2^2~41 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2c714645d358d746f3893afa020df79695e52461;p=gnome-shell.git main: Don't set stage key focus to stage itself Moving the key focus to the stage should be done by unsetting the key focus, not by setting it to the stage itself. Part-of: --- diff --git a/js/ui/main.js b/js/ui/main.js index 2705a4026..4d8079a4d 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -737,7 +737,8 @@ export function pushModal(actor, params = {}) { }); actionMode = newActionMode; - global.stage.set_key_focus(actor); + const newFocus = actor === global.stage ? null : actor; + global.stage.set_key_focus(newFocus); return grab; }